<?php
//
//  VictoryCMS - Content managment system and framework.
//  Copyright (C) 2009  Lewis Gunsch
//
//  This file is part of VictoryCMS.
//  
//  VictoryCMS is free software: you can redistribute it and/or modify
//  it under the terms of the GNU General Public License as published by
//  the Free Software Foundation, either version 3 of the License, or
//  (at your option) any later version.
//
//  VictoryCMS is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.
//  
//  You should have received a copy of the GNU General Public License
//  along with VictoryCMS.  If not, see <http://www.gnu.org/licenses/>.

/**
 * VictoryCMS - index.php
 * 
 * This is the main startup file for VictoryCMS. Here is where
 * some core settings are places.
 * 
 * @license http://www.gnu.org/licenses/gpl.html
 * @author Lewis Gunsch
 */


/* 
 * Include the main startup file.
 * Modify this if necessary to reflect any 
 * changes to the includes path of a web site.
 * 
 * Ex: require_once("./include/VcmsMain.php");
 */
require_once("./include/VcmsMain.php");

/* 
 * Settings.xml file path for the web site settings for VictoryCMS.
 * The Settings.xml file should be either above the document root, or
 * the permissions changed so as to protect it from prying eye's
 * 
 * Ex: $path = "/path/to/settings/settings.xml";
 */
$path = "/path/to/settings/settings.xml";

/*
 * The administrators email address. Errors and such will be sent here
 * if debugging is enabled.
 * 
 * Ex: $email_address = "email.address@domain.tld";
 */
$email_address = "email.address@domain.tld";

/*
 * This enables/disables debugging information printing with Vcms.
 * 1 enables debugging, 0 disables debuggins
 * 
 * Ex: $debugging = false; //debugging off
 */
$debugging = false;


//~~DO NOT MODIFY THESE LINES~~//
$varMap = VarMap::getInstance();
VarMap::attach($path, VarMapKeys::settings_path);
VarMap::attach($email_address, VarMapKeys::admin_email);
VarMap::attach($debugging, VarMapKeys::debug_enabled);
/* 
 * Call the main VictoryCMS startup after setting the 
 * settings path for it to retrieve it's settings.
 */
VcmsStartup();
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
?>
